/*
 * @author: sanbao
 * @Date: 2022-08-04 20:51:22
 */
//
import request from "@/utils/request"
const addShoppingCart = (data) => {
    // http: //101.132.181.9/api/user/shoppingCart/addShoppingCart
    return request({
        url: 'user/shoppingCart/addShoppingCart',
        method: 'POST',
        data
    })
}
//
const getshoplist = (data) => {
    // http: //101.132.181.9/api/user/shoppingCart/getShoppingCart
    return request({
        url: 'user/shoppingCart/getShoppingCart',
        method: 'POST',
        data
    })
}
//
const deleteShoppingCart = (data) => {
    // http: //101.132.181.9/api/user/shoppingCart/deleteShoppingCart
    return request({
        url: 'user/shoppingCart/deleteShoppingCart',
        method: 'POST',
        data
    })
}
//
const addOrder = (data) => {
    http: //101.132.181.9/api/user/order/addOrder
        return request({
            url: 'user/order/addOrder',
            method: 'POST',
            data
        })
}
//
const getOrder = (data) => {
    // http: //101.132.181.9/api/user/order/getOrder
    return request({
        url: 'user/order/getOrder',
        method: 'POST',
        data
    })
}
//
const addCollect = (data) => {
    // http: //101.132.181.9/api/user/collect/addCollect
    return request({
        url: 'user/collect/addCollect',
        method: 'POST',
        data
    })
}
//
const getCollect = (data) => {
    // http: //101.132.181.9/api/user/collect/getCollect
    return request({
        url: 'user/collect/getCollect',
        method: 'POST',
        data
    })
}
//
const deleteCollect = (data) => {
    // http: //101.132.181.9/api/user/collect/deleteCollect
    return request({
        url: 'user/collect/deleteCollect',
        method: 'POST',
        data
    })
}
export default {
    addShoppingCart,
    getshoplist,
    deleteShoppingCart,
    addOrder,
    getOrder,
    addCollect,
    getCollect,
    deleteCollect
};